package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.CancelNursingTaskDto;
import com.zzyl.nursing.dto.DoNursingTaskDto;
import com.zzyl.nursing.dto.NursingTaskPageDto;
import com.zzyl.nursing.dto.UpdateEstimatedTimeDto;
import com.zzyl.nursing.vo.NursingTaskDetailVo;

/**
 * nursingTaskService接口
 * 
 * @author ruoyi
 * @date 2025-10-29
 */
public interface INursingTaskService extends IService<NursingTask>
{
    /**
     * 查询nursingTask
     * 
     * @param id nursingTask主键
     * @return nursingTask
     */
    public NursingTaskDetailVo selectNursingTaskById(Long id);

    /**
     * 查询nursingTask列表
     * 
     * @param dto nursingTask
     * @return nursingTask集合
     */
    public List<NursingTask> selectNursingTaskList(NursingTaskPageDto dto);

    /**
     * 新增nursingTask
     * 
     * @param nursingTask nursingTask
     * @return 结果
     */
    public int insertNursingTask(NursingTask nursingTask);

    /**
     * 修改nursingTask
     * 
     * @param nursingTask nursingTask
     * @return 结果
     */
    public int updateNursingTask(NursingTask nursingTask);

    /**
     * 批量删除nursingTask
     * 
     * @param ids 需要删除的nursingTask主键集合
     * @return 结果
     */
    public int deleteNursingTaskByIds(Long[] ids);

    /**
     * 删除nursingTask信息
     * 
     * @param id nursingTask主键
     * @return 结果
     */
    public int deleteNursingTaskById(Long id);

    /**
     * 执行任务
     * @param doNursingTaskDto
     */
    void doTask(DoNursingTaskDto doNursingTaskDto);

    /**
     * 取消计划
     * @param dto
     * @return
     */
    boolean cancel(CancelNursingTaskDto dto);

    /**
     * 任务改期
     * @param dto
     * @return
     */
    boolean updateTime(UpdateEstimatedTimeDto dto);

    /**
     * 生成月度护理任务
     * @param elder 老人信息
     */
    void generateMonthlyTask(Elder elder);

}
